<template>
    <div class="body">
        <form action="">
            <el-input v-model="input" style="width: 240px" placeholder="Please input" />

            <el-button type="primary" @click="onSubmit">登录</el-button>
        </form>
    </div>    
</template>
  
<script lang="ts" setup>
    import { ref } from 'vue'

    const input = ref('')

    const onSubmit = () => {
    console.log('submit!')
    }
</script>

<style scoped lang="scss">
    .body{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background-color: red;
    }
</style>